<?php
    require("../ajax/top.ajax.php");

    header("content-type: application/x-javascript");
 ?>

    var session = new Array();

    <?php if(isset($_SESSION['user'])) { ?>
        session['user'] = new Array();
        session['user']['id'] = "<?=$_SESSION['user']['id']?>";
        session['user']['nom'] = "<?=$_SESSION['user']?>";

   <?php } else { ?>
        session['user'] = new Array();
        session['user']['id'] = null;
        session['user']['nom'] = null;
    <?php } ?>
